package com.by.common.dao.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ServivE
 * @version 0.1
 * @className PageResult
 * @description
 * @date 2024/11/6 20:42
 * @since jdk17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * 分页结果
 */
@ApiModel("分页查询结果")
public class PageResult<T> {
    @ApiModelProperty(value = "当前页数")
    int page;//当前页数
    @ApiModelProperty(value = "每页记录数")
    int pageSize;//每页记录数
    @ApiModelProperty(value = "总记录数")
    long total; //总记录数
    @ApiModelProperty(value = "分页查询结果")
    //分页查询结果
    List<T> data;
}
